# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="iRecovery - A console client for iBoot/iBSS 2.x and 3.x used by iPhone & iPod touch."
HOMEPAGE="http://github.com/westbaer/irecovery/tree/master"
SRC_URI="http://iphoneoverlay.googlecode.com/files/irecovery-9999.tar.bz2"

LICENSE="GPLv3"
SLOT="0"
KEYWORDS="x86 ~amd64"
IUSE=""

RDEPEND=">=dev-libs/libusb-0.1.11
		sys-libs/readline"

src_unpack() {
	unpack ${A}
	cd "${S}"
}

src_compile() {
	emake linux || die "make failed"
}

src_install() {
	mkdir -p "${D}"/usr/bin
	mv irecovery "${D}"/usr/bin
	dodoc README
}

